package com.manager.dao;

import com.manager.domain.Person;

import java.util.List;

public interface UserDao {
    /**
     * 查询所有数据
     * @return
     */
    default List<Person> showAll() {
        return null;
    }

    /**
     * 删除数据
     * @return 0
     * id
     */
    default int delete(int id) {
        return 0;
    }

    /**
     * 修改
     * @return String name,String gender,int age,String address,int qq,String email
     * String name,String gender,int age,String address,int qq,String email
     */
    default int update(String name, String gender, String age, String address, String qq, String email, int id) {
        return 0;
    }

    /**
     * 修改
     * @return String name,String gender,int age,String address,int qq,String email
     * String name,String gender,int age,String address,int qq,String email
     */
            default int insert(String name, String gender, String age, String address, String qq, String email) {
                return 0;
            }

}
